﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Wicture.QPZS.EPC.Models
{
    public class ModelCatalog
    {
        public int id { get; set; }
        public string identity { get; set; }
        public string name { get; set; }
        public int parentId { get; set; }
        public int level { get; set; }
        public int modelId { get; set; }
        public string iconUrl { get; set; }
        public string pinYinCapital { get; set; }
        public int manualType { get; set; }
        public string entry { get; set; }
    }

    public class ModelCatalogDto : IComparable<ModelCatalogDto>
    {
        public int id { get; set; }
        public string identity { get; set; }
        public string name { get; set; }
        public int modelId { get; set; }
        public string iconUrl { get; set; }
        public string pinYinCapital { get; set; }
        public List<ModelCatalogDto> subCatalogs { get; set; }
        public int manualType { get; set; }
        public string entry { get; set; }
        public int CompareTo(ModelCatalogDto other)
        {
            return this.id - other.id;
        }
    }
}
